/**
 * Created by Administrator on 2017/5/2.
 */
var select_one = document.getElementById("select_one");
var cUl = select_one.children[0];
var cLis = cUl.children;
var arrows = document.getElementsByClassName("arrow");
var cfof12 = document.getElementById("content1_first_one_footer12");
for (var i = 0; i < cLis.length; i++) {
    cLis[i].index = i;
    cLis[i].onclick = function () {
        for (var i = 0; i < arrows.length; i++) {
            arrows[i].style.opacity = "0";
        }
        this.children[2].style.opacity = "1";
        console.log(this.index);
        var target = -this.index * 1120+20;
        console.log(target);
        animate(cfof12, {left: target});
    };
}
